package JPetStore.domain;

import java.math.BigDecimal;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

public class Order {
    private int orderid;
    private String shipaddr1;
    private String shipaddr2;
    private String shipcity;
    private String shipstate;
    private String shipzip;
    private String shipcountry;
    private String courier;
    private BigDecimal totalprice;
    private String shiptofirstname;
    private String shiptolastname;
    private String creditcard;
    private String exprdate;
    private String cardtype;
    private String locale;
    private Date orderdate;
    private String username;
    private String billaddr1;
    private String billaddr2;
    private String billcity;
    private String billstate;
    private String billzip;
    private String billcountry;
    private String billfirstname;
    private String billlastname;

    public List<LineItem> getLineItems() {
        return lineItems;
    }

    public void setLineItems(List<LineItem> lineItems) {
        this.lineItems = lineItems;
    }

    private List<LineItem> lineItems = new ArrayList();

    public String getBillToFirstName() {
        return billfirstname;
    }

    public void setBillToFirstName(String billfirstname) {
        this.billfirstname = billfirstname;
    }

    public String getBillToLastName() {
        return billlastname;
    }

    public void setBillToLastName(String billlastname) {
        this.billlastname = billlastname;
    }

    public String getBillCity() {
        return billcity;
    }

    public void setBillCity(String billcity) {
        this.billcity = billcity;
    }

    public String getBillState() {
        return billstate;
    }

    public void setBillState(String billstate) {
        this.billstate = billstate;
    }

    public String getBillZip() {
        return billzip;
    }

    public void setBillZip(String billzip) {
        this.billzip = billzip;
    }

    public String getBillCountry() {
        return billcountry;
    }

    public void setBillCountry(String billcountry) {
        this.billcountry = billcountry;
    }

    public String getBillAddress1() {
        return billaddr1;
    }

    public void setBillAddress1(String billaddr1) {
        this.billaddr1 = billaddr1;
    }

    public String getBillAddress2() {
        return billaddr2;
    }

    public void setBillAddress2(String billaddr2) {
        this.billaddr2 = billaddr2;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getOrderId() {
        return orderid;
    }

    public void setOrderId(int orderid) {
        this.orderid = orderid;
    }

    public String getShipAddress1() {
        return shipaddr1;
    }

    public void setShipAddress1(String shipaddr1) {
        this.shipaddr1 = shipaddr1;
    }

    public String getShipAddress2() {
        return shipaddr2;
    }

    public void setShipAddress2(String shipaddr2) {
        this.shipaddr2 = shipaddr2;
    }

    public String getShipCity() {
        return shipcity;
    }

    public void setShipCity(String shipcity) {
        this.shipcity = shipcity;
    }

    public String getShipState() {
        return shipstate;
    }

    public void setShipState(String shipstate) {
        this.shipstate = shipstate;
    }

    public String getShipZip() {
        return shipzip;
    }

    public void setShipZip(String shipzip) {
        this.shipzip = shipzip;
    }

    public String getShipCountry() {
        return shipcountry;
    }

    public void setShipCountry(String shipcountry) {
        this.shipcountry = shipcountry;
    }

    public String getCourier() {
        return courier;
    }

    public void setCourier(String courier) {
        this.courier = courier;
    }

    public BigDecimal getTotalPrice() {
        return totalprice;
    }

    public void setTotalPrice(BigDecimal totalprice) {
        this.totalprice = totalprice;
    }

    public String getShipToFirstName() {
        return shiptofirstname;
    }

    public void setShipToFirstName(String shiptofirstname) {
        this.shiptofirstname = shiptofirstname;
    }

    public String getShipToLastName() {
        return shiptolastname;
    }

    public void setShipToLastName(String shiptolastname) {
        this.shiptolastname = shiptolastname;
    }

    public String getCreditCard() {
        return creditcard;
    }

    public void setCreditCard(String creditcard) {
        this.creditcard = creditcard;
    }

    public String getExpiryDate() {
        return exprdate;
    }

    public void setExpiryDate(String exprdate) {
        this.exprdate = exprdate;
    }

    public String getCardType() {
        return cardtype;
    }

    public void setCardType(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public Date getOrderDate() {
        return orderdate;
    }

    public void setOrderDate(Date orderdate) {
        this.orderdate = orderdate;
    }


    public void init(int orderid, String shipaddr1, String shipaddr2, String shipcity, String shipstate, String shipzip, String shipcountry, BigDecimal totalprice, String shiptofirstname, String shiptolastname, String creditcard, String exprdate, String cardtype, Date orderdate) {
        this.orderid = orderid;
        this.shipaddr1 = shipaddr1;
        this.shipaddr2 = shipaddr2;
        this.shipcity = shipcity;
        this.shipstate = shipstate;
        this.shipzip = shipzip;
        this.shipcountry = shipcountry;
        this.totalprice = totalprice;
        this.shiptofirstname = shiptofirstname;
        this.shiptolastname = shiptolastname;
        this.creditcard = creditcard;
        this.exprdate = exprdate;
        this.cardtype = cardtype;
        this.locale = "locale";
        this.courier = "USP";
        this.orderdate = orderdate;
    }
}
